package bc.swim2.ejb.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@NamedQueries({
	@NamedQuery(name = "Ability.getAbilityRequestList", query = "SELECT ar FROM AbilityRequest ar"),
	@NamedQuery(name = "Ability.getAbilityRequestById", query = "SELECT ar FROM AbilityRequest ar WHERE ar.id=:id")
})

@Entity
@Table(name = "ability_request")
public class AbilityRequest implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8553101663131443518L;

	@Id
	@GeneratedValue
	@Column(name = "Id", nullable = false)
	protected int id;

	@Column(name = "Name", nullable = false)
	protected String name;

	@Column(name = "Description")
	protected String description;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
